package com.jiai;

import com.jiai.core.util.ThreadPoolProxy;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(basePackages={"com.jiai.**.dao"})
@EnableTransactionManagement
public class AibaApplication {
	public static void main(String[] args) {
		SpringApplication.run(AibaApplication.class, args);
	}
	@Bean
	public ThreadPoolProxy threadPoolProxy(){
		return new ThreadPoolProxy(200, 500, 3000);
	}
}
